/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.adv.entity;

import javax.validation.constraints.NotNull;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.modules.sys.entity.Area;
import java.util.List;
import com.google.common.collect.Lists;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 城市广告奖励配置Entity
 * @author 罗天文
 * @version 2018-03-20
 */
public class HkCityAdvReward extends DataEntity<HkCityAdvReward> {
	
	private static final long serialVersionUID = 1L;
	private HkCityAdv cityAdv;		// 城市广告id
	private Date beginDate;		// 开始时间
	private Date endDate;		// 结束时间
	private Area country;		// 国家
	private Area province;		// 省
	private Area city;		// 市
	private List<HkCityAdvGoods> hkCityAdvGoodsList = Lists.newArrayList();		// 子表列表
	private List<HkCityAdvIntegral> hkCityAdvIntegralList = Lists.newArrayList();		// 子表列表
	
	public HkCityAdvReward() {
		super();
	}

	public HkCityAdvReward(String id){
		super(id);
	}

	@NotNull(message="城市广告id不能为空")
	public HkCityAdv getCityAdv() {
		return cityAdv;
	}

	public void setCityAdv(HkCityAdv cityAdv) {
		this.cityAdv = cityAdv;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	
	public Area getCountry() {
		return country;
	}

	public void setCountry(Area country) {
		this.country = country;
	}
	
	public Area getProvince() {
		return province;
	}

	public void setProvince(Area province) {
		this.province = province;
	}
	
	public Area getCity() {
		return city;
	}

	public void setCity(Area city) {
		this.city = city;
	}
	
	public List<HkCityAdvGoods> getHkCityAdvGoodsList() {
		return hkCityAdvGoodsList;
	}

	public void setHkCityAdvGoodsList(List<HkCityAdvGoods> hkCityAdvGoodsList) {
		this.hkCityAdvGoodsList = hkCityAdvGoodsList;
	}
	public List<HkCityAdvIntegral> getHkCityAdvIntegralList() {
		return hkCityAdvIntegralList;
	}

	public void setHkCityAdvIntegralList(List<HkCityAdvIntegral> hkCityAdvIntegralList) {
		this.hkCityAdvIntegralList = hkCityAdvIntegralList;
	}
}